from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^$', views.home, name="home"),
    # 照片列表
    url(r'^index/(?P<pIndex>[0-9]+)$', views.index, name="index"),
    # 添加表单
    url(r'^addPicture$', views.addPicture, name="addPicture"),
    # 添加图片
    url(r'^insertPicture$', views.insertPicture, name="insertPicture"),
    # 修改
    url(r'^editPicture/(?P<picId>[0-9]+)$',
        views.editPicture, name="editPicture"),
    # 更新图片
    url(r'^updatePicture$', views.updatePicture, name="updatePicture"),
    # 删除
    url(r'^deletePicture/(?P<picId>[0-9]+)$',
        views.deletePicture, name="deletePicture"),
]
